import request from '@/utils/request'
import request3 from '@/utils/request3'

export function upload(data) {
  return request({
    url: '/api/v1/file/upload',
    method: 'post',
    data: data
  })
}


export function removeFile(data) {
  return request({
    url: '/api/v1/file/delete',
    method: 'post',
    data: data
  })
}

// 短信验证码
export function getCodeSms2() {
  return request({
    url: '/captchaSms',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}


//多语言
export function langList(data) {
  return request3({
    url: '/i18n-model/list',
    method: 'post',
    data: data
  })
}

export function langData(data) {
  return request3({
    url: '/i18n-data/data-list',
    method: 'post',
    data: data
  })
}

export function langSave(data) {
  return request3({
    url: '/i18n-data/save',
    method: 'post',
    data: data
  })
}


